﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Xml.Serialization;

namespace MazeWars
{
    public class Spell
    {
        private int damage;
        private string name;
        private int elementID;
        private string animFilename;
        private int spellTypeID;

        [XmlAttribute("Name")]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [XmlAttribute("Damage")]
        public int Damage
        {
            get { return damage; }
            set { damage = value; }
        }

        [XmlAttribute("AnimFileName")]
        public string AnimFilename
        {
            get { return animFilename; }
            set { animFilename = value; }
        }

        [XmlAttribute("ElementID")]
        public int ElementID
        {
            get { return elementID; }
            set { elementID = value; }
        }

        [XmlAttribute("SpellTypeID")]
        public int SpellTypeID
        {
            get { return spellTypeID; }
            set { spellTypeID = value; }
        }

        public override string ToString()
        {
            return name;
        }    
    }
}
